<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2023/12/15
  Time: 15:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加相册种类</title>
</head>
<body>
<h2>请设置相册的类别 (<span data-bind="text: seats().length"></span>)</h2>

<table>
    <thead><tr>
        <th>类别名</th>
    </tr></thead>

    <tbody data-bind="foreach: seats">
    <tr>
        <td><input data-bind="value: name" /></td>

        <td><a href="#" data-bind="click: $root.removeSeat">删除</a></td>
    </tr>
    </tbody>
</table>
<button data-bind="click: addSeat, enable: seats().length < 20">点击增加类别</button>
<div></div>
<button data-bind="click: submitDataToBackend">点击确认</button><button onclick="goBack()">点击返回</button>
<!-- partial -->
<script src='//cdnjs.cloudflare.com/ajax/libs/knockout/3.2.0/knockout-min.js'></script>
<script  src="static/js/setType.js"></script>

</body>
</html>
